/*
 *      AgendaViewSemaine.java
 *      
 *      Copyright 2011 Jean Clément Nigues <jeanclement@P5E3deluxe>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 *      
 *      
 */
package pda.agenda.ihm;

import pda.agenda.controller.*;

import java.awt.*;
import javax.swing.*;

public class InformationActivite extends JPanel {

	private FlowLayout layout;

	private JLabel titreLabel;
	private JLabel titreContenuLabel;

	private JLabel descriptionLabel;
	private JLabel descriptionContenuLabel;

	private JLabel dateDebutLabel;
	private JLabel dateDebutContenuLabel;

	private JLabel dateFinLabel;
	private JLabel dateFInContenuLabel;

	private JLabel lieuLabel;
	private JLabel lieuContenuLabel;

	private JButton boutonModifier;
	private JButton boutonRetour;

	/**
	 * Constructeur
	 */
	public InformationActivite() {
		this.creerInterface();
		this.attacherReaction();
	}

	public JLabel getTitreContenuLabel() {
		return this.titreContenuLabel;
	}

	public JLabel getDescriptionContenuLabel() {
		return this.descriptionContenuLabel;
	}

	public JLabel getLieuContenuLabel() {
		return this.lieuContenuLabel;
	}

	/**
	 * Créer et place les composants sur l'interface
	 */
	private void creerInterface() {

		//this.setLayout(layout);

		this.titreLabel = new JLabel("Nom :");
		this.titreContenuLabel = new JLabel();

		this.descriptionLabel = new JLabel("Description :");
		this.descriptionContenuLabel = new JLabel();

		this.lieuLabel = new JLabel("Lieu :");
		this.lieuContenuLabel = new JLabel();

		this.boutonModifier = new JButton("Modifier");
		this.boutonRetour = new JButton("Retour");

		this.add(titreLabel);
		this.add(titreContenuLabel);
		this.add(descriptionLabel);
		this.add(descriptionContenuLabel);
		this.add(lieuLabel);
		this.add(lieuContenuLabel);
		this.add(boutonModifier);
		this.add(boutonRetour);

	}

	/**
	 * Attache les reactions aux composants de l'interface
	 */
	private void attacherReaction() {
		// Ecouteur sur les boutons "modifier" et "retour"
	}
}
